package com.Logistics.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 货物
 */
@Data
@TableName("pd_order_cargo")
public class OrderCargo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 运单id
     */
    @TableField("tran_order_id")
    private String tranOrderId;

    /**
     * 货物类型id
     */
    @TableField("goods_type_id")
    private String goodsTypeId;

    /**
     * 货物名称
     */
    @TableField("name")
    private String name;

    /**
     * 货物单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 货品货值
     */
    @TableField("cargo_value")
    private Long cargoValue;

    /**
     * 货品条码
     */
    @TableField("cargo_barcode")
    private String cargoBarcode;

    /**
     * 货品数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 货品体积
     */
    @TableField("volume")
    private Long volume;

    /**
     * 货品重量
     */
    @TableField("weight")
    private Long weight;

    /**
     * 货品备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 货品总体积
     */
    @TableField("total_volume")
    private Long totalVolume;

    /**
     * 货品总重量
     */
    @TableField("total_weight")
    private Long totalWeight;

    //编辑订单
    @TableField(exist = false)
    private Boolean editing=false;
}
